import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'home',
        component: HomeView
    },
    {
        path: '/about',
        name: 'about',
        component: () => import('../views/AboutView.vue')
    },
    {
        path:'/util',
        name:'util',
        component: () => import('../views/util/Index.vue')
    },
    {
        path:'/util/idcard',
        name:'idcard',
        component: () => import('../views/util/IDCardView.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
